/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.hogent.iii.project.guigameroom;

import java.awt.Dimension;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

/**
 *
 * @author jef donders
 */
public class TabbedPanePanel extends JPanel {

    private JTabbedPane tabbedPane;
    private GameRoomGui ouder;
    
    public TabbedPanePanel(GameRoomGui ouder, Dimension size){
        this.setOpaque(false);
        this.ouder = ouder;
        //this.setSize(size);
        
        tabbedPane = new JTabbedPane();
        String[] spelersNamen = {"anquilas", "joske","donderz", "timmeke", "josefien", "marieke", "delphine"};
        LijstPanel spelersPanel = new LijstPanel(ouder, size, spelersNamen);
        
        String[] gamesNamen = {"joske", "jef", "tim", "josefien","marieke"};
        LijstPanel gamesPanel = new LijstPanel(ouder, size, gamesNamen);
        
        tabbedPane.add(spelersPanel, "Spelers");
        tabbedPane.add(gamesPanel, "Games");
        
        
        //SpelersLijstPanel spelers = new SpelersLijstPanel();
        //tabbedPane.add(spelers, "Spelers");
        //GamesLijstPanel games = new GamesLijstPanel();
        //tabbedPane.add(games, "Games");
        
        add(tabbedPane);
        
    }
    
   
}
